#include<bits/stdc++.h>
using namespace std;
int n,m,T,L,V;
int main(){
    freopen("detect.in","r",stdin);
    freopen("detect.out","w",stdout);
    cin>>T;
    for(int j=0;j<T;j++){
    cin>>n>>m>>L>>V;
    int a[n],b[n],c[n];
        for(int i=0;i<n;i++){
            cin>>a[i]>>b[i]>>c[i];
        }
        }
        int p[m];
        for(int i=0;i<n;i++){
            cin>>p[i];
        }
    cout<<"3 3";
return 0;
}
